import { defineUserConfig } from "vuepress";
import theme from "./theme.js";

export default defineUserConfig({
  base: "/chineseBrand/",

  lang: "zh-CN",
  title: "中国品牌",
  description: "一个介绍中国品牌的网站",

  theme,

  // Enable it with pwa
  // shouldPrefetch: false,
  head: [
    // 百度统计代码  参考文档：https://blog.csdn.net/baijiafan/article/details/126657618
    ['script', {}, `
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?9ee4d0c76789b938c1fa3403bb76add0";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    `]
  ]
});
